<?php
$this->breadcrumbs=array(
    'Site Content',
);
$cs = Yii::app()->clientScript;
$cs->registerCssFile(Yii::app()->theme->baseUrl.'/styles/form.css');
$cs->registerCssFile(Yii::app()->theme->baseUrl.'/styles/widget-box.css');
$cs->registerCssFile(Yii::app()->theme->baseUrl.'/styles/manage-page.css');
$cs->registerCssFile(Yii::app()->themeManager->baseUrl.'/Admin/styles/master-content.css');
$cs->registerCssFile(Yii::app()->themeManager->baseUrl.'/Admin/scripts/fancybox/jquery.fancybox-1.3.4.css');
$cs->registerCssFile(Yii::app()->themeManager->baseUrl.'/Admin/scripts/CodeMirror-2.23/lib/codemirror.css');
$cs->registerCssFile(Yii::app()->themeManager->baseUrl.'/Admin/scripts/elfinder-1.2/css/elfinder.css');
$cs->registerCssFile(Yii::app()->themeManager->baseUrl.'/Admin/scripts/elfinder-1.2/css/smoothness/jquery-ui-1.8.13.custom.css');

$cs->registerScriptFile(Yii::app()->themeManager->baseUrl.'/Admin/scripts/CodeMirror-2.23/lib/codemirror.js');
$cs->registerScriptFile(Yii::app()->themeManager->baseUrl.'/Admin/scripts/CodeMirror-2.23/mode/xml/xml.js');
$cs->registerScriptFile(Yii::app()->themeManager->baseUrl.'/Admin/scripts/CodeMirror-2.23/mode/javascript/javascript.js');
$cs->registerScriptFile(Yii::app()->themeManager->baseUrl.'/Admin/scripts/CodeMirror-2.23/mode/css/css.js');
$cs->registerScriptFile(Yii::app()->themeManager->baseUrl.'/Admin/scripts/CodeMirror-2.23/mode/htmlmixed/htmlmixed.js');
//$cs->registerScriptFile(Yii::app()->themeManager->baseUrl.'/Admin/scripts/CodeMirror-2.23/lib/util/foldcode.js');
$cs->registerScriptFile(Yii::app()->themeManager->baseUrl.'/Admin/scripts/master-content/libs/require/require.js');
$cs->registerScriptFile(Yii::app()->themeManager->baseUrl.'/Admin/scripts/master-content/main.js');
$cs->registerScriptFile(Yii::app()->themeManager->baseUrl.'/Admin/scripts/tinymce/jscripts/tiny_mce/tiny_mce.js');
?>
<div id="box-wrapper">    
    <div class="inner">
        <div id="box-content">                    
            <div class="sidebar">
                <div class="section">
                    <ul id="list-container" class="left-nav">
                        <?php $this->renderNestedPage($models);?>
                    </ul>
                </div>
            </div>
            <div class="main-content">
                <?php echo CHtml::dropDownList('workflow_id',$workflowId,$workflows);?>
                <div class="widgets"></div>
            </div>
        </div>
    </div>
</div>
<div style="display: none;">
    <?php echo CHtml::link('Widgets data', array('/Cms/admin/page/widgets'), array('class'=>'widget_url'));?>
    <?php echo CHtml::link('Connection', array('/Core/service/command', 'SID'=>'Core.FileManager.cmdConnect','root'=>'/uploads'), array('class'=>'connection_url'));?>
</div>